import PaasButtonBar from "./PaasButtonBar/index.vue";
import PaasCodeEditor from "./PaasCodeEditor/index.vue";
import PaasDate from "./PaasDate/index.vue";
import PaasIndexBar from "./PaasIndexBar/index.vue";
import PaasMenu from "./PaasMenu/index.vue";
import PaasPageSelect from "./PaasPageSelect/index.vue";
import PaasPageTable from "./PaasPageTable/index.vue";
import PaasSelect from "./PaasSelect/index.vue";
import PaasTitleBar from "./PaasTitleBar/index.vue";
import PaasTree from "./PaasTree/index.vue";
import PaasUploadModal from "./PaasUploadModal/index.vue";
import FormDate from "./form/FormDate/index.vue";
import FormInput from "./form/FormInput/index.vue";
import FormNumber from "./form/FormNumber/index.vue";
import FormPageSelect from "./form/FormPageSelect/index.vue";
import FormSelect from "./form/FormSelect/index.vue";
import FormSwitch from "./form/FormSwitch/index.vue";
import FormDateRange from "./form/FormDateRange/index.vue";
import FormTree from "./form/FormTree/index.vue";
import FormUpload from "./form/FormUpload/index.vue";
import PaasEditor from "./PaasEditor/index.vue";
import * as monaco from 'monaco-editor/esm/vs/editor/editor.main.js';
import '@vueup/vue-quill/dist/vue-quill.snow.css';


// 按需引入
/* export {
    FormDate,
    FormInput,
    FormNumberInput,
    FormPageSelect,
    FormSelect,
    FormSwitch,
    FormTree,
    FormUpload,
    PaasButtonBar,
    PaasCodeEditor,
    PaasDate,
    PaasIndexBar,
    PaasMenu,
    PaasPageSelect,
    PaasPageTable,
    PaasSelect,
    PaasTitleBar,
    PaasTree,
    PaasUploadModal
};
 */
const component = [
    PaasButtonBar,
    PaasCodeEditor,
    PaasDate,
    PaasIndexBar,
    PaasMenu,
    PaasPageSelect,
    PaasPageTable,
    PaasSelect,
    PaasTitleBar,
    PaasTree,
    PaasUploadModal,
    FormDate,
    FormInput,
    FormNumber,
    FormPageSelect,
    FormSelect,
    FormSwitch,
    FormTree,
    FormDateRange,
    FormUpload,
    PaasEditor,
];

const globalComponents = {
    install(app) {
        component.forEach((item) => {
            app.component(item.name, item);
        });
    },
};

export default globalComponents;
